package com.alameda.provider.statement;

import com.alameda.service.statement.AdSystemRecordService;
import com.alameda.statement.api.AdSystemRecordProvider;
import com.alameda.statement.enums.AdSystemRecordEnum;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 系统信息记录 同步接口层 具体实现
 *
 * @author Lv
 * @date 2024/09/26
 */
@DubboService
public class AdSystemRecordProviderImpl implements AdSystemRecordProvider {

    @Autowired
    private AdSystemRecordService adSystemRecordService;

    /**
     * 存储系统信息记录
     *
     * @param adSystemRecordEnum 系统记录类型
     * @return
     */
    @Override
    public Boolean saveRecord(AdSystemRecordEnum adSystemRecordEnum) {
        return adSystemRecordService.saveRecord(adSystemRecordEnum);
    }
}
